From: Florian Müllner Date: Thu, 20 Jan 2022 18:11:48 +0000 (+0100) Subject: panel: Fix corner transition when slowed down X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~530^2^2~246 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=6a10f2f2f1cf6082429b1544ec624aeaf4e18b90;p=gnome-shell.git panel: Fix corner transition when slowed down Both ease() and CSS durations take the slow-down factor into account, so the corners currently end up using the square of the factor in their transition. Part-of: --- diff --git a/js/ui/panel.js b/js/ui/panel.js index dafba690a..ce1c49308 100644 --- a/js/ui/panel.js +++ b/js/ui/panel.js @@ -492,7 +492,8 @@ class PanelCorner extends St.DrawingArea { let cornerRadius = node.get_length("-panel-corner-radius"); let borderWidth = node.get_length('-panel-corner-border-width'); - const transitionDuration = node.get_transition_duration(); + const transitionDuration = + node.get_transition_duration() / St.Settings.get().slow_down_factor; const opacity = node.get_double('-panel-corner-opacity'); this.set_size(cornerRadius, borderWidth + cornerRadius);